package controllers.tinkerforge;

import java.util.ArrayList;

import play.Logger;
import ch.bfh.abcm.rems.interfaces.tinkerforge.TFSensorDataPersister;
import ch.bfh.abcm.rems.sensors.tinkerforge.TFConfig;
import ch.bfh.abcm.rems.sensors.tinkerforge.TFSensorConfigDefinition;
import ch.bfh.abcm.rems.sensors.tinkerforge.TFSensorType;

public class REMSTFConfig extends TFConfig{
    
    private static long CALLBACK_PERIOD = 1000;
    

    public REMSTFConfig(TFSensorDataPersister dataPersister) {
        super(dataPersister);
        
        
        
    }

    @Override
    protected ArrayList<TFSensorConfigDefinition> getSensorDefinitions() {
        ArrayList<TFSensorConfigDefinition> sensorDefinitions = new ArrayList<TFSensorConfigDefinition>();
        
        sensorDefinitions.add(new TFSensorConfigDefinition(TFSensorType.AMBIENT, "8GL", "192.168.1.77", CALLBACK_PERIOD));
        sensorDefinitions.add(new TFSensorConfigDefinition(TFSensorType.TEMPERATURE, "dz1", "192.168.1.77", CALLBACK_PERIOD));
        sensorDefinitions.add(new TFSensorConfigDefinition(TFSensorType.HUMIDITY, "dgf", "192.168.1.77", CALLBACK_PERIOD));
       
        Logger.debug("Cofigured Sensors: %s", sensorDefinitions.size());
        return sensorDefinitions;
    }

}
